@import '@/app/styles/variables';

.card {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 24px;
}

.image {
  position: relative;
  display: flex;
  width: 96px;
  height: 96px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f3f3;
  img {
    object-fit: cover;
  }
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  flex: 1 0 0;
  word-break: break-word;
}

.title {
  position: relative;
  color: var(--simple-night, #000);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px; /* 130% */
  word-break: break-word;
  display: block;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: clip;
  &::after {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 26px;
    right: 0px;
    width: 100%;
    height: 26px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 65.37%, #fff 80.77%);
    z-index: 0;
  }
}

.price {
  color: var(--simple-night, #000);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px; /* 130% */

  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
}

.discount_price {
  color: var(--simple-gray-evening, var(--simple-grey-evening, #ababab));
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 137.5% */
  text-decoration-line: line-through;
}

@include media(sm) {
  .card {
    gap: 16px;
  }
  .image {
    width: 72px;
    height: 72px;
  }
  .title {
    font-size: 16px;
    line-height: 22px;
  }
  .price {
    font-size: 16px;
    line-height: 22px; /* 137.5% */
  }
  .discount_price {
    font-size: 12px;
    line-height: 16px; /* 133.333% */
  }
}
